stop
Stops or pauses the active operation of this control.
This typically involves pausing content playback, animations, or data fetching, and potentially reducing resource consumption. The control should retain its state so it can be resumed by #start().
Calling stop()} on an already stopped control should be a no-op.
Stops the playback of stories.This method performs the following actions:
- Sets the
isStartedflag to false. - Removes any pending callbacks for
nextRunnable,autoNextRunnable, andupdateRunnablefrom their respective handlers. - Stops video playback using
videoImpl.stopPlayback(). - If
mediaPlayeris not null, stops and releases it. - Cancels any ongoing animations on
imageContainer,videoContainer, andweb(if not null). - Sets the visibility of
imageContainertoINVISIBLE. - Sets the visibility of
videoContainertoGONE. - If
webis not null:- Executes JavaScript to call
RevelDigital.Controller.onStop(). - Triggers a JavaScript event named "RevelDigital.Stop".
- Sets the visibility of
webtoINVISIBLEand its alpha to 0.
- Executes JavaScript to call